package declare;

import java.util.Scanner;

public class InputArray {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] numbers = new int[5];
		
		for (int i = 0; i < numbers.length; i++) {
			numbers[i] = scan.nextInt();
		}
		for (int i : numbers) {
			System.out.print(i+" ");
		}
		System.out.println();
		int sum = 0;
		for (int i = 0; i < numbers.length; i++) {
			sum += numbers[i];
		}
		System.out.println(sum);
		int avge = sum/numbers.length;
		System.out.println(avge);
	}
}
